ThisBuild / version := "0.1.0-SNAPSHOT"

ThisBuild / scalaVersion := "2.13.16" // 设置 Scala 版本

val sparkVersion = "3.5.6"  // 设置 Scala 版本

lazy val root = (project in file("."))
  .settings(
    name := "spark-scala-first",
    //libraryDependencies += "org.scala-lang" %% "toolkit-test" % "0.1.7" % Test
    libraryDependencies ++= Seq(
      "org.apache.spark" %% "spark-core" % sparkVersion,  // Spark Core 依赖
      "org.apache.spark" %% "spark-sql" % sparkVersion,   // Spark SQL 依赖
      "org.apache.spark" %% "spark-streaming" % sparkVersion, // Spark Streaming 依赖
      "org.scala-lang" %% "toolkit" % "0.1.7" % Provided,
      "org.scala-lang" %% "toolkit-test" % "0.1.7" % Test
    )
  )
